if %JAVA_HOME% == ""  set JAVA_HOME=E:\Java\jdk1.6.0_16
set ANTLR_HOME=%cd%
set CLASSPATH=.;%JAVA_HOME%\lib\dt.jar;%JAVA_HOME%\lib\tools.jar;%ANTLR_HOME%\lib\antlr-2.7.7.jar;%ANTLR_HOME%\lib\antlr-3.1.3.jar;%ANTLR_HOME%\lib\antlr-runtime-3.1.3.jar;%ANTLR_HOME%\lib\gunit.jar;%ANTLR_HOME%\lib\stringtemplate-3.2.jar

set package=org\cjw\esa\front
if "%1" == "" java org.antlr.Tool -fo "bin\%package%" -debug -make    grammar\C.g


REM ANT
set ANT_HOME=E:\Java\eclipse\plugins\org.apache.ant_1.7.0.v200803061910
set path=%path%;%ANT_HOME%\bin
ant -lib %ANT_HOME%\lib -f build.xml compile